﻿using System.IO;
using HgAdapter;

namespace HogoLogic.HgFileSystem
{
	public class HgFileInfo
	{
		readonly private FileInfo innerFileInfo;
		readonly private VersionStatus versionStatus;

		public HgFileInfo(string fileName)
		{
			innerFileInfo = new FileInfo(fileName);
			versionStatus = ProjectCommitInfo.Instance.GetVersionStatus(innerFileInfo.FullName);
		}

		public string Name
		{
			get
			{
				return innerFileInfo.Name;
			}
		}

		public VersionStatus VersionStatus
		{
			get
			{
				return versionStatus;
			}
		}

		public string FullName
		{
			get
			{
				return innerFileInfo.FullName;
			}
		}
	}
}
